package marketplace_server;

import java.io.Serializable;
import marketplace_client.ClientImpl;
import marketplace_client.Client;


/**
 *
 * @author gianmariospacagna
 */
public class Item implements Serializable {
    private static final long serialVersionUID = 1L;
    private String name;
    private Integer price;
    private boolean isForSale;
    //private Client seller;
    private String buyer;
    private String seller;

    public Item(String name, Integer price, boolean isForSale, String buyer, String seller) {
        this.name = name;
        this.price = price;
        this.isForSale = isForSale;
        this.buyer = buyer;
        this.seller = seller;
    }
    

    
    
    

    public boolean isIsForSale() {
        return isForSale;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSeller(String seller) {
        this.seller = seller;
    }
    
    
    
    
    public void setPrice (Integer newPrice) {
        this.price = newPrice;
    }
    public void setBuyer(String buyer) {
        this.buyer = buyer;
    }
    
    public String getName() {
        return name;
    }
    public Integer getPrice() {
        return price;
    }
    public void setIsForSale(boolean isForSale) {
        this.isForSale = isForSale;
    }
    public boolean isForSale() {
        return isForSale;
    }
    public String getBuyer () {
        return buyer;
    }
    public String getSeller() {
        return seller;
    }
}
